package com.skywolf.chem.utils.sms;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Created by pei_pei on 2020/6/28.
 */
@ConfigurationProperties("aliyun")
public class AliProperties {
    private String accessKeyId;
    private String accessSecret;


    public String getAccessKeyId() {
        return this.accessKeyId;
    }

    public String getAccessSecret() {
        return this.accessSecret;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public void setAccessSecret(String accessSecret) {
        this.accessSecret = accessSecret;
    }

    public boolean equals(Object o) {
        if(o == this) {
            return true;
        } else if(!(o instanceof AliProperties)) {
            return false;
        } else {
            AliProperties other = (AliProperties)o;
            String this$accessKeyId = this.getAccessKeyId();
            String other$accessKeyId = other.getAccessKeyId();
            if(this$accessKeyId == null) {
                if(other$accessKeyId != null) {
                    return false;
                }
            } else if(!this$accessKeyId.equals(other$accessKeyId)) {
                return false;
            }

            String this$accessSecret = this.getAccessSecret();
            String other$accessSecret = other.getAccessSecret();
            if(this$accessSecret == null) {
                if(other$accessSecret != null) {
                    return false;
                }
            } else if(!this$accessSecret.equals(other$accessSecret)) {
                return false;
            }

            return true;
        }
    }

    public int hashCode() {
        boolean PRIME = true;
        byte result = 1;
        String $accessKeyId = this.getAccessKeyId();
        int result1 = result * 59 + ($accessKeyId == null?43:$accessKeyId.hashCode());
        String $accessSecret = this.getAccessSecret();
        result1 = result1 * 59 + ($accessSecret == null?43:$accessSecret.hashCode());
        return result1;
    }

    public String toString() {
        return "AliyunProperties(accessKeyId=" + this.getAccessKeyId() + ", accessSecret=" + this.getAccessSecret() + ")";
    }
}
